package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2016/10/18.
 */
@Entity
@Table(name = "coupon_merchant_stores")
@DynamicInsert
@DynamicUpdate
public class CouponMerchantStore extends IDEntityMall {

    @Column(columnDefinition = "bigint(20) comment '优惠券ID'")
    private Long couponId;
    @Column(columnDefinition = "bigint(20) comment '店铺ID'")
    private Long storeId;

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        return "CouponMerchantStore{" +
                "couponId=" + couponId +
                ", id=" + id +
                ", storeId=" + storeId +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
